﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    public class NoticeInfo
    {
        #region Model
        private int _id;
        private int _userid;
        private string _title;
        private string _context;
        private bool _ismust;
        private string _tousers;
        private string _hasread;
        private DateTime _createdate;

        //拓展字段
        public string RealName = "";
        public string HeadImg = "";
        public string ToUsersName = "";
        public string HasReadName = "";
        public int MyHasRead = 0;//0没我，1我已读，2我未读
        public List<AnnexInfo> ImgList = new List<AnnexInfo>();
        public List<AnnexInfo> FileList = new List<AnnexInfo>();
        /// <summary>
        /// 
        /// </summary>
        public int ID
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int UserID
        {
            set { _userid = value; }
            get { return _userid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Title
        {
            set { _title = value; }
            get { return _title; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Context
        {
            set { _context = value; }
            get { return _context; }
        }
        /// <summary>
        /// 
        /// </summary>
        public bool IsMust
        {
            set { _ismust = value; }
            get { return _ismust; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ToUsers
        {
            set { _tousers = value; }
            get { return _tousers; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string HasRead
        {
            set { _hasread = value; }
            get { return _hasread; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime CreateDate
        {
            set { _createdate = value; }
            get { return _createdate; }
        }
        #endregion Model
    }
}
